package com.hdoit.ares.web.brokerage.modelconfig;

import com.hdoit.ares.web.brokerage.providers.ConfirmStateProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class CarBrokerageRecordSearchConfig extends ModelMetadataAttributeConfiguration{

	public CarBrokerageRecordSearchConfig(){
		
		this.setProperty("customerName")
     		.hasAttribute(new DisplayNameAttribute("客户名"));
		
		this.setProperty("userIdentity")
 			.hasAttribute(new DisplayNameAttribute("客户编号"));
		
		this.setProperty("startDate")
 			.hasAttribute(new DisplayNameAttribute("时间从"));
		
		this.setProperty("endDate")
 			.hasAttribute(new DisplayNameAttribute("到"));
		
		this.setProperty("confirmState")
 			.hasAttribute(new DisplayNameAttribute("确认状态"))
 			.hasAttribute(new DropDownListAttribute(new ConfirmStateProvider("senior")));;
		
		this.setProperty("carNo")
 			.hasAttribute(new DisplayNameAttribute("车牌号"));
	}

}
